// ...展开运算符 合并对象字面量

const city = {
    name: '南昌县',
    popolation: '1000k'
};
const location = {
    longitude: '115.937726',
    latitude: '28.55722'
}
// 合并对象字面量
// ... 展开运算符
const hometown = {
    ...city,
    ...location
}
console.log(hometown)
/**
 * {
  name: '南昌县',
  popolation: '1000k',    
  longitude: '115.937726',
  latitude: '28.55722'    
}
 */